package ru.hh.team02.chat.server.SendMessage.sendingBlockingQueue;

import java.util.List;

public interface BlockingQueue<T> {

	/**
	 * Get a message from the queue.
	 * 
	 * @return T
	 * @throws InterruptedException
	 */
	public abstract T get() throws InterruptedException;

	/**
	 * Add T object to the queue
	 * 
	 * @param obj
	 *            object to add to the queue
	 */
	public abstract void add(T obj);

	/**
	 * Add a set of objects to the queue.
	 * 
	 * @param objects
	 *            Set of objects to add to the queue
	 */
	public abstract void addAll(List<T> objects);

}